package book.dao;

import book.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao extends CommonDao<User> {
    User getUser(@Param("username") String username, @Param("password") String password);

    List<User> getAll(@Param("offset") int offset, @Param("limit") int limit, @Param("condition") User condition);

    void delrole(int id);
}
